<?php get_header(); ?>

<div class="news">
<?php
  $args = array(
    'numberposts' => -1,
    'category' => 4
  );
  $posts = get_posts($args);
  
  foreach($posts as $post){
?>
<div class="news-field">
  <div class="date">
    <div class="bar"></div>
    <div class="date-info">
      <h2><?php echo strftime('%d',strtotime($post->post_date)); ?></h2>
      <p><?php echo strftime('%b',strtotime($post->post_date)); ?></p>
    </div>
  </div>
  <div class="news-header">
    <h2><a href="<?php echo get_permalink($post->ID); ?>"><?php echo $post->post_title; ?></a></h2>
    <div class="share">
      <?php echo do_shortcode('[wpsr_facebook]'); ?>
      <?php echo do_shortcode('[wpsr_retweet]'); ?>
      <?php echo do_shortcode('[wpsr_plusone]'); ?>
    </div>
  </div>
  <div class="news-content">
    <p><?php echo substr(strip_tags($post->post_content), 0, 700); ?></p>
  </div>
</div>

<?php } ?>
</div>

<?php get_footer(); ?>